package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceAssessmentMapper;
import com.ruoyi.service.domain.ServiceAssessment;
import com.ruoyi.service.service.IServiceAssessmentService;

/**
 * 订单评价表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-11-12
 */
@Service
public class ServiceAssessmentServiceImpl implements IServiceAssessmentService 
{
    @Autowired
    private ServiceAssessmentMapper serviceAssessmentMapper;

    /**
     * 查询订单评价表
     * 
     * @param assessmentId 订单评价表主键
     * @return 订单评价表
     */
    @Override
    public ServiceAssessment selectServiceAssessmentByAssessmentId(Long assessmentId)
    {
        return serviceAssessmentMapper.selectServiceAssessmentByAssessmentId(assessmentId);
    }

    /**
     * 查询订单评价表列表
     * 
     * @param serviceAssessment 订单评价表
     * @return 订单评价表
     */
    @Override
    public List<ServiceAssessment> selectServiceAssessmentList(ServiceAssessment serviceAssessment)
    {
        return serviceAssessmentMapper.selectServiceAssessmentList(serviceAssessment);
    }

    /**
     * 新增订单评价表
     * 
     * @param serviceAssessment 订单评价表
     * @return 结果
     */
    @Override
    public int insertServiceAssessment(ServiceAssessment serviceAssessment)
    {
        return serviceAssessmentMapper.insertServiceAssessment(serviceAssessment);
    }

    /**
     * 修改订单评价表
     * 
     * @param serviceAssessment 订单评价表
     * @return 结果
     */
    @Override
    public int updateServiceAssessment(ServiceAssessment serviceAssessment)
    {
        return serviceAssessmentMapper.updateServiceAssessment(serviceAssessment);
    }

    /**
     * 批量删除订单评价表
     * 
     * @param assessmentIds 需要删除的订单评价表主键
     * @return 结果
     */
    @Override
    public int deleteServiceAssessmentByAssessmentIds(Long[] assessmentIds)
    {
        return serviceAssessmentMapper.deleteServiceAssessmentByAssessmentIds(assessmentIds);
    }

    /**
     * 删除订单评价表信息
     * 
     * @param assessmentId 订单评价表主键
     * @return 结果
     */
    @Override
    public int deleteServiceAssessmentByAssessmentId(Long assessmentId)
    {
        return serviceAssessmentMapper.deleteServiceAssessmentByAssessmentId(assessmentId);
    }
}
